package com.example.offer.no0017.impl;

import com.example.offer.no0017.Solution;

public class SolutionImpl implements Solution {

    @Override
    public int[] printNumbers(int n) {
        if (n == 0) {
            return null;
        }

        int size = (int) Math.pow(10, n) - 1;
        int[] res = new int[size];

        for (int i = 0; i < size; i++) {
            res[i] = i + 1;
        }
        return res;
    }
}
